<template>
	<view class="yqhy">
		<image src="../../static/images/yanqing.png" mode="widthFix" class="bg"></image>
		<button open-type="share" class="btn">
			<image src="../../static/images/yaoqing_btn.png" mode="widthFix" class="btn-img"></image>
		</button>
	</view>
</template>

<script>
	import { mapState, mapActions } from 'vuex';
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			...mapState(['user'])
		},
		methods: {
			onShareAppMessage(res) {
			    if (res.from === 'button') {// 来自页面内分享按钮
			      console.log(res.target)
			    }
				let id = this.user.id
			    return {
			      // title: '自定义分享标题',
			      path: `/pages/index?shareid=${id}`
			    }
			}
		}
	}
</script>

<style scoped>
.yqhy {
	position: relative;
}
.bg {
	width: 100%;
}
.btn {
	width: 514rpx;
	height: 114rpx;
	position: absolute;
	left: 50%;
	top: 1106rpx;
	transform: translateX(-50%);
	background-color: transparent;
}
.btn::after {
	content: '';
	display: none;
}
.btn .btn-img{
	width: 100%;
	height: 100%;
}
</style>
